
<?php foreach ($this->users as $user) { ?>
    <div class="dataBoxOver">
        <div class="dataInnRep">
            <div class="dataInnTop">
                <div class="dataInnBottom">
                    <div class="dataHeader">
                        <h4><?php echo $user['fname'] . ' ' . $user['lname']; ?></h4>
                    </div>

                    <div class="clr"></div>
                    <table class="dataActions" width="100%" border="0" cellpadding="0" cellspacing="0" >
                        <tr>
                            <th>Select</th>
                            <th>Name</th>
                            <th>Address</th>
                            <th>Phone</th>
                        </tr>
<?php foreach ($this->houses as $item) { ?>
                            <tr>
                                <td><input type="checkbox" id="<?= $item['id'] . '-' . $user['user_id']; ?>" name="<?= $item['id']; ?>" onclick="assignHouseUser('<?= $item['id']; ?>','<?= $user['user_id']; ?>')" <?= (!empty($item['house_digging_user_id']) && $item['house_digging_user_id'] != $user['user_id']) ? 'disabled' : '' ?> <?= ($item['house_digging_user_id'] == $user['user_id']) ? 'checked' : '' ?>></td>
                        <td><?php echo $item['owner_name'] ?></td>
                        <td><?php echo $item['address'] ?></td>
                        <td>###</td>
                    </tr>
<?php } ?>
                </table>
            </div>
        </div>
    </div>
</div>
<?php } ?>
            